package com.tian.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.tian.dao.PersonMapper;
import com.tian.po.Person;

public class PersonService {

	@Autowired
	private PersonMapper personMapper;
	
	public void addPerson(Person person){
		personMapper.insertPerson(person);
	}
	
	public List<Person> queryAllPerson(Person person){
		return personMapper.queryAllPerson();
	}
	
}
